package github.fafaovo.common.event;

import github.fafaovo.common.commands.BackPostionCommand;
import github.fafaovo.common.commands.GetHandCommand;
import github.fafaovo.common.commands.SavePostionCommand;
import github.fafaovo.common.commands.SetPowerCommand;
import github.fafaovo.example;
import net.minecraftforge.event.RegisterCommandsEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.server.command.ConfigCommand;

@Mod.EventBusSubscriber(modid = example.MOD_ID)
public class CommandEvents {
    @SubscribeEvent
    public static void commandRegister(RegisterCommandsEvent event)
    {
        new GetHandCommand(event.getDispatcher());
        new SavePostionCommand(event.getDispatcher());
        new BackPostionCommand(event.getDispatcher());
        new SetPowerCommand(event.getDispatcher());
        ConfigCommand.register(event.getDispatcher());
    }
}
